<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="typetemplate.xhtml">
        <ui:define name="pageTitre">Index Type</ui:define>
        <ui:define name="contenuTitre">Index Type</ui:define>
        <ui:define name="content">
            <h:form  styleClass="jsfcrud_list_form">
                <h:dataTable var="row" value="#{typeController.types}"  border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all">
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="Type"/>
                        </f:facet>
                        <h:outputText value="#{row}" />
                    </h:column>
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="Commande"/>
                        </f:facet>
                        <h:commandLink action="#{typeController.modifierDetail}" value="Modifier" />
                        &nbsp;&bull;&nbsp;
                        <h:commandLink action="#{typeController.delete}" value="Supprimer" />
                    </h:column>
                </h:dataTable>
            </h:form>
        </ui:define>
    </ui:composition>
</html>